#!/bin/sh
#mount '/usr, /mnt, /web, /pci_boot'
grep nfs /proc/cmdline > /dev/null
NFS_MODE=$?
#if [ $NFS_MODE = 0 ]; then
#mount -t nfs -o nolock 2.1.1.1:/home/wyt/rootfs/Hi3520_SDK_V1.0.4.0/usr	/usr
#mount -t nfs -o nolock 2.1.1.1:/home/wyt/rootfs/Hi3520_SDK_V1.0.4.0/mnt	/mnt
#mount -t nfs -o nolock 2.1.1.1:/home/wyt/rootfs/Hi3520_SDK_V1.0.4.0/web	/web
#mount -t nfs -o nolock 2.1.1.1:/home/wyt/rootfs/Hi3520_SDK_V1.0.4.0/pci_boot	/pci_boot
#else
#mount -t jffs2  /dev/mtdblock4  /mnt/
#mount -t jffs2  /dev/mtdblock5  /web/
#mount -t jffs2  /dev/mtdblock6  /pci_boot/
#mount -t jffs2  /dev/mtdblock7  /usr/
#fi

sh MountNfs.sh

insmod /usr/gpioi2c.ko
if [ -e /usr/tvp5158.ko ]; then insmod /usr/tvp5158.ko; fi
insmod /usr/m240.ko

#echo "************************ now boot slave ********************************"
insmod /root/ext_drv/mmz.ko mmz=ddr,0,0xc0000000,32M
insmod /root/ext_drv/pci_multi_boot.ko path=/pci_boot/
rmmod pci_multi_boot
rmmod mmz
#echo "************************ boot slave ok ********************************"

insmod /root/ext_drv/pciv/pci_hwhal_host.ko
insmod /root/ext_drv/pciv/hi3520_pci_trans.ko
#echo "************************ load pci trans ok ********************************"
 
#insmod pci msg
insmod /root/ext_drv/pciv/hi_hw_adp.ko
insmod /root/ext_drv/pciv/pcicom.ko
#echo "************************ load pci mcc ok ********************************"

#insmod mpp
cd /root/ext_drv
./sysctl_asic.sh
cd /root/ext_drv/mpp_master
./load_master
 
#insmod pciv
insmod /root/ext_drv/mpp_master/hi3520_pciv.ko
#echo "************************ load hi3520 mpp ok ********************************"
 

if [ -e /usr/run.sh ]; then /bin/sh /usr/run.sh; fi

